﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/Site.Master" AutoEventWireup="true" CodeBehind="Cobrar.aspx.cs" Inherits="new_Seminario.Cobrar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Cobrar</h2>
   <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BarCafeConnectionString %>" 
        
    
        SelectCommand="SELECT [Nro_Reserva], [Fecha_Reserva], [Id_Estado], [Cantidad_Comensales], [Id_Usuario], [Id_Mesa] FROM [Reserva] where Fecha_Reserva = CONVERT (date, SYSDATETIME()) and Id_Estado = 2"></asp:SqlDataSource>
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Nro_Reserva" 
        DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
        Width="916px">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:BoundField DataField="Nro_Reserva" HeaderText="Nro_Reserva" 
                InsertVisible="False" ReadOnly="True" SortExpression="Nro_Reserva" />
            <asp:BoundField DataField="Fecha_Reserva" HeaderText="Fecha_Reserva" 
                SortExpression="Fecha_Reserva" />
            <asp:BoundField DataField="Id_Estado" HeaderText="Id_Estado" 
                SortExpression="Id_Estado" />
            <asp:BoundField DataField="Cantidad_Comensales" 
                HeaderText="Cantidad_Comensales" SortExpression="Cantidad_Comensales" />
            <asp:BoundField DataField="Id_Usuario" HeaderText="Id_Usuario" 
                SortExpression="Id_Usuario" />
            <asp:BoundField DataField="Id_Mesa" HeaderText="Id_Mesa" 
                SortExpression="Id_Mesa" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
          <emptydatatemplate>

  
            No se encontraron datos.  

        </emptydatatemplate> 
    </asp:GridView>
    <br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
        Text="Cobrada" />
    <br />
</asp:Content>

